/*
 * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
 * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
 */
package org.sbbs.admin.entity;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.EnumType;
import jakarta.persistence.Enumerated;
import jakarta.persistence.Table;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.Comment;
import org.sbbs.base.jpa.entity.BaseAuditEntity;

/**
 *
 * @author jenkins
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Entity
@Table(name = "sys_parameter")
@Comment("系统参数表")
public class SysParameter extends BaseAuditEntity {

    private static final long serialVersionUID = 48474707901806632L;

    @Comment("KEY")
    @Column(name = "key_", length = 50)
    @NotNull
    private String key;
    @Comment("名称")
    @Column(name = "name", length = 50)
    @NotNull
    private String name;
    @Comment("值")
    @Column(name = "value", length = 50)
    @NotNull
    private String value;
    @Comment("备注")
    @Column(name = "remark", length = 255)
    private String remark;

//    @Enumerated(EnumType.ORDINAL)
//    @Column(name = "state")
//    private SysParamEnum state;
    @Column(name = "state")
    private Boolean state;
}
